<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/1/12
  Time: 15:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>员工列表</title>
</head>
<body>
  <table border="1">
    <thead>
      <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>性别</th>
        <th>工资</th>
        <th>部门编号</th>
      </tr>
    </thead>
    <tbody>
      <c:forEach items="${list.list}" var="e">
        <tr>
          <td>${e.id}</td>
          <td>${e.empName}</td>
          <td>${e.gender}</td>
          <td>${e.salary}</td>
          <td>${e.deptid}</td>
        </tr>
      </c:forEach>
    </tbody>
  </table>

  <a href="/page3?pagenum=1&pagesize=${list.pageSize}">首页</a>
  <a href="/page3?pagenum=${list.previousPage}&pagesize=${list.pageSize}">上一页</a>
  <c:forEach items="${list.navigatepageNums}" var="num">
    <a href="/page3?pagenum=${num}&pagesize=${list.pageSize}" > ${num}</a>
  </c:forEach>
  <a href="/page3?pagenum=${list.nextPageNo}&pagesize=${list.pageSize}">下一页</a>
  <a href="/page3?pagenum=${list.pages}&pagesize=${list.pageSize}">尾页</a>
</body>
</html>
